<div class="panel panel-default panel-intro">
    {:build_heading()}

    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="one">
                <div class="widget-body no-padding">
                    <form id="find-form" class="form-horizontal" method="POST" action="warehouse/stock/details/ids/{$ids}" multiple="true">
                        <div class="pull-left search" style="margin-right: 10px"><input class="form-control" id="batch" type="text" name="batch" value="{$batch}" placeholder="批次号"></div>
                        <div class="pull-left search" style="margin-right: 10px"><input class="form-control" type="text" name="warehouse" value="{$warehouse}" placeholder="仓库"></div>
                        <div class="pull-left search" style="margin-right: 10px"><input class="form-control" type="text" name="location" value="{$location}" placeholder="库位"></div>
                        <div class="pull-left search" style="margin-right: 10px"><input class="form-control" type="text" name="type" value="{$type}" placeholder="类型"></div>
                        <div class="pull-left search">
                            <button type="submit" class="btn btn-success">{:__('OK')}</button>
                            <button type="reset" id="btn" class="btn btn-default btn-embossed">{:__('Reset')}</button>
                        </div>
                        <input name="search" type="hidden" value="1">
                    </form>
                    <table id="table" class="table table-striped table-bordered table-hover table-nowrap" width="100%">
                        <thead>
                        <tr>
                            <th>产品编号</th>
                            <th>产品名称</th>
                            <th>批次号</th>
                            <th>产品规格</th>
                            <th>单位</th>
                            <th>数量</th>
                            <th>仓库名称</th>
                            <th>库位</th>
                            <th>类型</th>
                            <th>创建时间</th>
                        </tr>
                        </thead>
                        <tbody id="MyPublishShow">
                            {volist name="rows" id="vo"  }
                            <tr>
                                <td>{$vo.product_bn}</td>
                                <td>{$vo.name}</td>
                                <td>{$vo.batch}</td>
                                <td>{$vo.spec}</td>
                                <td>{$vo.unit}</td>
                                <td>{$vo.num}</td>
                                <td>{$vo.warehouse_name}</td>
                                <td>{$vo.location_name}</td>
                                <td>{$vo.type}</td>
                                <td>{$vo.createtime}</td>
                            </tr>
                            {/volist}
                        </tbody>
                    </table>
                </div>
            </div>

        </div>
    </div>
</div>
<script>
    window.onload = function(){
        var btn = document.getElementById("btn");
        var batch = document.getElementById("batch");
        btn.onclick = function(){

            batch.value = '2213';
        }
    }
</script>
